package com.dnjn.happiness.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 维度评价对象 biz_appraise_xref
 *
 * @author happiness
 * @date 2024-03-15
 */
@Schema(name = "AppraiseXref", description = "维度评价")
@Accessors(chain = true)
@Getter
@Setter
@TableName("biz_appraise_xref")
public class AppraiseXref extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "appraise_xref_id", type = IdType.ASSIGN_ID)
    private Long appraiseXrefId;

    
    

    /** 评价id */
    @Schema(description = "评价id")
    @Excel(name = "评价id")
    private Long appraiseId;

    /** 维度id */
    @Schema(description = "维度id")
    @Excel(name = "维度id")
    private Long tagId;

    /** 评级 */
    @Schema(description = "评级")
    @Excel(name = "评级")
    private String grade;

    /** 是否删除|0-否 1-是 */
    @Schema(description = "是否删除|0-否 1-是")
    @Excel(name = "是否删除|0-否 1-是")
    private String deleted;

    @TableField
    @Schema(description = "维度名称")
    private String label;




    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("appraise_xref_id", getAppraiseXrefId())
                .append("appraise_id", getAppraiseId())
                .append("tag_id", getTagId())
                .append("grade", getGrade())
                .append("remark", getRemark())
                .append("create_by", getCreateBy())
                .append("create_time", getCreateTime())
                .append("update_by", getUpdateBy())
                .append("update_time", getUpdateTime())
                .append("deleted", getDeleted())
                .append("version", getVersion())
                .toString();
    }
}
